#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <stdlib.h>

int main()
{
	
	int(*p)[3][5] = (int(*)[3][5])malloc(3 * 5 * sizeof(int));
	if (p == NULL)
	{
		return 1;
	}
	for (int i = 0; i < 3; i++)
	{
		for (int j = 0; j < 5; j++)
		{
			*(p + i)[j] = i;///////
		}
	}
	return 0;
}